<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>03.表单</title>
    <link rel="stylesheet" href="bootstrap-4.5.3/css/bootstrap.css">
</head>

<body>
    <h1>表单</h1>
    <!-- 表单一行 -->
    <form action="#" class="form-inline ">
        <div class="form-group ">
            <label for="username">用户名</label>
            <input type="text" class="form-control" id="username">
        </div>
        <div class="form-group ">
            <label for="pwd">密码</label>
            <input type="password" class="form-control" id="pwd">
        </div>


    </form>
    <!-- 表单一行 -->
    <form action="#">
        <div class="form-group ">
            <label for="username">用户名</label>
            <input type="text" class="form-control" id="username">
        </div>
        <div class="form-group ">
            <label for="pwd">密码</label>
            <input type="password" class="form-control" id="pwd">
        </div>


    </form>
    <!-- 表单的栅格系统 -->
    <form action="#">
        <div class="form-group row">
            <label for="username" class="col-sm-1 col-form-label">用户名</label>
            <input type="text" class="col-sm-3 col-form-label form-control" id="username">
            <label for="username" class="col-sm-1 col-form-label">用户名</label>
            <input type="text" class="col-sm-3 col-form-label form-control" id="username">
            <label for="username" class="col-sm-1 col-form-label">用户名</label>
            <input type="text" class="col-sm-3 col-form-label form-control" id="username">
        </div>
        <div class="form-group row">
            <label for="pwd" class="col-sm-2 col-form-label">密码</label>
            <input type="password" class="col-sm-10 col-form-label form-control" id="pwd">
        </div>


    </form>

</body>

</html>